package com.cluck.pay.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 支付信息实体类
 * @author cluck
 * @version 1.0
 * @date 2020/5/9 17:52
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PayInfo {

    /** 主键id */
    private Integer id;
    /** 用户id */
    private Integer userId;
    /** 订单号 */
    private Long orderNo;
    /** 支付平台:1-支付宝,2-微信 */
    private Integer payPlatform;
    /** 支付流水号 */
    private String platformNumber;
    /** 支付状态 */
    private String platformStatus;
    /** 支付金额 */
    private BigDecimal payAmount;
    /** 创建时间 */
    private Date createTime;
    /** 更新时间 */
    private Date updateTime;

    public PayInfo(Long orderNo, Integer payPlatform, String platformStatus, BigDecimal payAmount) {
        this.orderNo = orderNo;
        this.payPlatform = payPlatform;
        this.platformStatus = platformStatus;
        this.payAmount = payAmount;
    }
}
